//
// Created by 郝羽 on 2018/5/11.
//

#ifndef RTC_XSWITCH2_PROXY_HPP
#define RTC_XSWITCH2_PROXY_HPP

#include <glib.h>
#include <string>
#include <list>

#include "xrtc_endpoint.h"

struct proxy;

proxy*  proxy_new(GMainContext* ctx, const std::string& proxyAddr, const std::string& httpAddr);
void    proxy_delete(proxy* proxy);
void    proxy_add_keepalive_rtc(proxy*, const std::string& conf_id, const std::string& rtc_id);
void    proxy_del_keepalive_rtc(proxy*, const std::string& conf_id, const std::string& rtc_id);

#endif //RTC_XSWITCH2_PROXY_HPP
